package com.muyu.danmo.service.impl;


import com.muyu.danmo.domain.DanmoGalleryDetailsType;
import com.muyu.danmo.mapper.DanmoGalleryDetailsTypeMapper;
import com.muyu.danmo.service.IDanmoGalleryDetailsTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 画廊与类型关联Service业务层处理
 *
 * @author yangle
 * @date 2024-10-23
 */
@Service
public class DanmoGalleryDetailsTypeServiceImpl implements IDanmoGalleryDetailsTypeService
{
    @Autowired
    private DanmoGalleryDetailsTypeMapper danmoGalleryDetailsTypeMapper;

    /**
     * 查询画廊与类型关联
     *
     * @param id 画廊与类型关联主键
     * @return 画廊与类型关联
     */
    @Override
    public DanmoGalleryDetailsType selectDanmoGalleryDetailsTypeById(Long id)
    {
        return danmoGalleryDetailsTypeMapper.selectDanmoGalleryDetailsTypeById(id);
    }

    /**
     * 查询画廊与类型关联列表
     *
     * @param danmoGalleryDetailsType 画廊与类型关联
     * @return 画廊与类型关联
     */
    @Override
    public List<DanmoGalleryDetailsType> selectDanmoGalleryDetailsTypeList(DanmoGalleryDetailsType danmoGalleryDetailsType)
    {
        return danmoGalleryDetailsTypeMapper.selectDanmoGalleryDetailsTypeList(danmoGalleryDetailsType);
    }

    /**
     * 新增画廊与类型关联
     *
     * @param danmoGalleryDetailsType 画廊与类型关联
     * @return 结果
     */
    @Override
    public int insertDanmoGalleryDetailsType(DanmoGalleryDetailsType danmoGalleryDetailsType)
    {
        return danmoGalleryDetailsTypeMapper.insertDanmoGalleryDetailsType(danmoGalleryDetailsType);
    }

    /**
     * 修改画廊与类型关联
     *
     * @param danmoGalleryDetailsType 画廊与类型关联
     * @return 结果
     */
    @Override
    public int updateDanmoGalleryDetailsType(DanmoGalleryDetailsType danmoGalleryDetailsType)
    {
        return danmoGalleryDetailsTypeMapper.updateDanmoGalleryDetailsType(danmoGalleryDetailsType);
    }

    /**
     * 批量删除画廊与类型关联
     *
     * @param ids 需要删除的画廊与类型关联主键
     * @return 结果
     */
    @Override
    public int deleteDanmoGalleryDetailsTypeByIds(Long[] ids)
    {
        return danmoGalleryDetailsTypeMapper.deleteDanmoGalleryDetailsTypeByIds(ids);
    }

    /**
     * 删除画廊与类型关联信息
     *
     * @param id 画廊与类型关联主键
     * @return 结果
     */
    @Override
    public int deleteDanmoGalleryDetailsTypeById(Long id)
    {
        return danmoGalleryDetailsTypeMapper.deleteDanmoGalleryDetailsTypeById(id);
    }
}
